package com.example.dubbo.account.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dubbo.account.entity.AccountTblEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author Liyuhang
 * @email 50875895@qq.com
 * @date 2021-09-21 15:02:45
 */
@Mapper
public interface AccountTblDao extends BaseMapper<AccountTblEntity> {
    /**
     * 减少账户余额
     * @param userId
     * @param amount
     * @return
     */
    int decreaseAccount(@Param("userId") String userId,@Param("amount") Double amount);
}
